package db.migration;

import net.jiastudy.core.base.BaseMigration;

public class V1_0_5__modify_task extends BaseMigration {
    @Override
    public void migrate() throws Exception {
        if (!isFieldExist("target_task", "progress")) {
            jdbcTemplate.update("ALTER TABLE target_task ADD `progress` tinyint(4) unsigned COMMENT '进度';");
        }

        if (!isFieldExist("target_task", "remark")) {
            jdbcTemplate.update("ALTER TABLE target_task ADD `remark` text COMMENT '任务完成情况的详细描述';");
        }
    }
}
